package com.gm.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.Arrays;

/**
 * @Author Administrator
 * @Date 2020/5/29 16:17
 **/
@Controller
public class TestController {
    @RequestMapping("page")
    public String doPage(Model model){
        model.addAttribute("msg","卢本伟牛逼！");
        model.addAttribute("lists", Arrays.asList("zhangsan","lisi","wanger","mazi"));
        return "test";
    }
}
